<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	template="/WEB-INF/jsf/template.xhtml">

	<ui:define name="head">
	</ui:define>

	<ui:define name="content">
		<h1>Manage #{guichetsmsgs['guichets.title']}s</h1>
		
		<h:form>	
			<p:commandButton image="new" ajax="false" style="margin-right:20px;" value="#{guichetsmsgs['navigation.new']}" action="#{GuichetsComponent.newGuichets()}"/>
			<p:dataTable id="dta" value="#{GuichetsComponent.listGuichetss()}"  var="current" rows="15" paginator="true" paginatorPosition="bottom">
				<p:column>
					<h:commandLink includeViewParams="true" action="#{GuichetsComponent.selectGuichets(current.guiEtablissement, current.guiGuichet, current.guiPays)}" >
						<h:graphicImage value="/images/icons/view.gif" style="border:0;"/>
					</h:commandLink>
					<h:commandLink includeViewParams="true" action="#{GuichetsComponent.editGuichets(current.guiEtablissement, current.guiGuichet, current.guiPays)}" >
						<h:graphicImage value="/images/icons/edit.gif" style="border:0;"/>
					</h:commandLink>
					<h:commandLink includeViewParams="true" action="#{GuichetsComponent.confirmDeleteGuichets(current.guiEtablissement, current.guiGuichet, current.guiPays)}" >
						<h:graphicImage value="/images/icons/delete.gif" style="border:0;"/>
					</h:commandLink>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{guichetsmsgs['guichets.guietablissement.title']}" />
					</f:facet>
							<h:outputText value="#{current.guiEtablissement}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{guichetsmsgs['guichets.guiguichet.title']}" />
					</f:facet>
							<h:outputText value="#{current.guiGuichet}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{guichetsmsgs['guichets.guipays.title']}" />
					</f:facet>
							<h:outputText value="#{current.guiPays}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{guichetsmsgs['guichets.guidomiciliation.title']}" />
					</f:facet>
							<h:outputText value="#{current.guiDomiciliation}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{guichetsmsgs['guichets.guiadresseprelevement.title']}" />
					</f:facet>
							<h:outputText value="#{current.guiAdressePrelevement}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{guichetsmsgs['guichets.guicontactprelevement.title']}" />
					</f:facet>
							<h:outputText value="#{current.guiContactPrelevement}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{guichetsmsgs['guichets.guichronotrace.title']}" />
					</f:facet>
							<h:outputText value="#{current.guiChronoTrace}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{guichetsmsgs['guichets.guinomguichet.title']}" />
					</f:facet>
							<h:outputText value="#{current.guiNomGuichet}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{guichetsmsgs['guichets.guicodenouvetablissement.title']}" />
					</f:facet>
							<h:outputText value="#{current.guiCodeNouvEtablissement}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{guichetsmsgs['guichets.guinouvguichet.title']}" />
					</f:facet>
							<h:outputText value="#{current.guiNouvGuichet}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{guichetsmsgs['guichets.guilocalitecompensation1.title']}" />
					</f:facet>
							<h:outputText value="#{current.guiLocaliteCompensation1}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{guichetsmsgs['guichets.guilocalitecompensation2.title']}" />
					</f:facet>
							<h:outputText value="#{current.guiLocaliteCompensation2}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{guichetsmsgs['guichets.guidebutvalidite.title']}" />
					</f:facet>
							<h:outputText value="#{current.guiDebutValidite}"  converter="dateConverterForCalendar" />
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{guichetsmsgs['guichets.guifinvalidite.title']}" />
					</f:facet>
							<h:outputText value="#{current.guiFinValidite}"  converter="dateConverterForCalendar" />
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{guichetsmsgs['guichets.guidisparition.title']}" />
					</f:facet>
							<h:outputText value="#{current.guiDisparition}"  converter="dateConverterForCalendar" />
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{guichetsmsgs['guichets.guinatureguichet.title']}" />
					</f:facet>
							<h:outputText value="#{current.guiNatureGuichet}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{guichetsmsgs['guichets.guicodesituation.title']}" />
					</f:facet>
							<h:outputText value="#{current.guiCodeSituation}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{guichetsmsgs['guichets.guitiers.title']}" />
					</f:facet>
							<h:outputText value="#{current.guiTiers}"/>
				</p:column>
			</p:dataTable>
		</h:form>
	</ui:define>
</ui:composition>
